<?php
class AlipayErrorModel extends PdoModel {
	protected $_name = 'alipay_error';
	
	function __construct(){
		parent::__construct();
	} 

	function deleteData($id = 0){
		$row = $this->find("id = {$id}");
		if(empty($row)){
			return false;
		}
		$this->delete("id = {$id}");
	}

	#添加
	function addData($data){
		return $this->insert($data);
	}
	#更新
    public function updateData($data, $id){
        $this->update($data, "id={$id}");
    }


}